<?php
session_start();

include  $_SERVER['DOCUMENT_ROOT'] . "/modules/info_bar/index.php";


$area = $_REQUEST["area"];
$section = $_REQUEST["section"];
$file = $_REQUEST["file"];



$save = 0;
if (array_key_exists ($area,$info_bar_data) && array_key_exists ($section,$info_bar_data[$area]) && array_key_exists ($file,$info_bar_data[$area][$section])) {
	 foreach ($info_bar_data[$area][$section][$file] as $key => $info) {
	 				 if (isset($info["delete"])) {
					 		unset($info_bar_data[$area][$section][$file][$key]);
							$save = 1;
					 } else {
					 	 $info_bar_data[$area][$section][$file][$key]["published"] = 1;
						 $save = 1;
					 }
	 }
}
if ($save == 1) save_info_file ();

?>
